import { $request, request } from "../../utils/request";

// 获取我的评价 及主持人信息
export function getHostInfo({ splid }) {
  return $request("kpComment/getMyComment", "POST", {
    splid,
  });
}

// 进行评价
export function commitComment({
  splid,
  // nickname,
  // avatar,
  content,
  label,
  satisfaction,
}) {
  return $request("kpComment/saveUserComment", "POST", {
    splid,
    // nickname,
    // avatar,
    content,
    type: "3", //场次评论
    label,
    satisfaction,
  });
}

// 获取评价汇总信息，
export function getHostCommentBase({ splid }) {
  return $request("kpComment/getUserComment", "POST", {
    splid,
  });
}

// 获取所欲评价用户评价列表
export function getHostCommentList({ splid, currentPage, showCount }) {
  return $request("kpComment/getCommentList", "POST", {
    splid,
    type: "3", //场次评价
    currentPage,
    showCount,
  });
}

// 打赏主持
export function Reward({ splid, totalfee}) {
  return request("hmWxmoney/chongzhiReward", "POST", {
    splid,
    totalfee,    
    // USER_ID,
    // openid,
  });
}
